﻿using System;

namespace CoreEx.Common.Data
{
    /// <summary>
    /// Represents a column in an <see cref="ITable"/> instance.
    /// </summary>
    public interface IColumn
    {
        /// <summary>
        /// Gets or sets the name of the column.
        /// </summary>
        string ColumnName { get; set; }

        /// <summary>
        /// Gets or sets the data type of this <see cref="IColumn"/>
        /// </summary>
        Type DataType { get; set; }

        /// <summary>
        /// Gets or sets the <see cref="ITable"/> that this <see cref="IColumn"/> belongs to.
        /// </summary>
        ITable Table { get; set; }
    }
}